#pragma once
#include"func.h"
typedef char* elemtype;
#define MAXSIZE 4096
typedef struct link_node
{
    elemtype value;  
    struct link_node *next;
}link_node;
typedef struct link_list
{
    link_node*head;
    link_node*tail;
    int size;
}link_list;
link_list* init_linklist();
bool empty_linklist(link_list* list);
bool insert_linknode(link_list* list,int index,elemtype value);
void destory_linklist(link_list* list);
bool delete_linknode(link_list*list,int index,elemtype val);
bool getelem_linknode(link_list*list,int index,elemtype val);
bool location_linknode(link_list*list,int *index,elemtype val);
void printf_linklist(link_list *list);
void clear_linklist(link_list* list);
